<template>
  <el-container class="jm-container">
    <el-aside width="200px">
      <el-menu :default-openeds="openeds" :router="true" style="height: 100%">
        <el-sub-menu index="1">
          <template #title>
            <el-icon>
              <i-ep-Grid />
            </el-icon>
            <span>布局</span>
          </template>
          <el-menu-item-group title="flex布局">
            <el-menu-item index="/gjm/layout/flex1"
              >高度自动撑满失效
            </el-menu-item>
          </el-menu-item-group>
          <el-menu-item-group title="数据">
            <el-menu-item index="/gjm/data/tree">树结构数据</el-menu-item>
          </el-menu-item-group>
          <el-menu-item-group title="其他">
            <el-menu-item index="/gjm/other/draggable">拖拽排序</el-menu-item>
          </el-menu-item-group>
        </el-sub-menu>
      </el-menu>
    </el-aside>
    <el-main>
      <RouterView />
    </el-main>
  </el-container>
</template>

<script setup>
import { reactive } from "vue";

const openeds = reactive(["1"]);
</script>
<style lang="less">
.jm-container {
  height: calc(100vh - 60px);
}
</style>